package com.chanzany.visitor.case2;

//具体访问者角色
public class Owner implements Person{
    @Override
    public void feed(Cat cat) {
        System.out.println("主人喂食猫："+cat.getName());
    }

    @Override
    public void feed(Dog dog) {
        System.out.println("主人喂食狗："+dog.getName());
    }
}
